package com.common.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.common.model.Category;
import com.common.query.CategotyQueryParam;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Component;

import java.util.List;

@Mapper
@Component
public interface CategoryMapper extends BaseMapper<Category> {

    List<Category> selectAllCategoryByQuery(@Param("category") CategotyQueryParam categotyQueryParam);

    Category selectById(@Param("categoryId") Long id);

}
